package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;
import com.itheima.reggie.domain.Setmeal;

import java.util.List;

public interface SetmealService {
    //套餐
    Page<Setmeal> findByPage(Integer pageNum, Integer pageSize,String name);

    //新增
    void save(Setmeal setmeal);

    //删除
    void deleteBatch(List<Long> ids);

    //回显
    Setmeal findById(Long id);

    //修改
    void updateById(Setmeal setmeal);

    //起售/停售
    void updateSetmealStatusById(Integer status, List<Long> ids);

    //套餐列表
    List<Setmeal> findList(Long categoryId, Integer status);

    //套餐展示菜品
    List<Dish> findDishBySetmealId(Long setmealId);

}
